Ext.data.MapReader = function(){
    Ext.data.MapReader.superclass.constructor.call(this, null, [
		{name: 'key', mapping: 'key'},
		{name: 'value', mapping: 'value'}
	]);
};
Ext.extend(Ext.data.MapReader, Ext.data.DataReader, {
    read : function(response) {
    	var records = [];
 		for (var dataItem in response) {
	        var record = new this.recordType({ key: dataItem, value: response[dataItem] }, null);
	        records[records.length] = record;
	    }
	    return {
	        records : records,
	        totalRecords : records.length
	    };
    }
});